package com.cjl.dental_clinic.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cjl.dental_clinic.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 预约信息表，关联患者和医生(Appointment)实体类
 *
 * @author makejava
 * @since 2024-04-09 13:54:38
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("appointment")
public class Appointment extends BaseEntity {
    // 患者ID
    @TableField("patient_id")
    private Integer patientId;
    // 医生ID
    @TableField("doctor_id")
    private Integer doctorId;
    // 预约日期和时间
    @TableField("appointment_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS")
    private Date appointmentDate;
}


